package com.stars.empoly.adapter

import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder
import com.stars.empoly.R
import com.stars.empoly.databinding.ItemHomeDriverBinding
import com.stars.empoly.model.CompreBean
import com.stars.empoly.vmodel.HomeDriverVModel
import com.trailer.base.base.BAdapter

class HomeDriverAdapter(val vm: HomeDriverVModel) : BAdapter<CompreBean, BaseDataBindingHolder<ItemHomeDriverBinding>>(R.layout.item_home_driver) {
    override fun convert(holder: BaseDataBindingHolder<ItemHomeDriverBinding>, item: CompreBean) {
        holder.dataBinding?.vm=vm
        holder.dataBinding?.item = item
        holder.dataBinding?.position=holder.adapterPosition
    }
}
